// Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "shell/browser/notifications/ohos/notification_presenter_ohos.h"
#include "shell/browser/notifications/ohos/ohos_notification.h"

namespace electron {

// static
std::unique_ptr<NotificationPresenter> NotificationPresenter::Create() {
  return std::make_unique<NotificationPresenterOhos>();
}

NotificationPresenterOhos::NotificationPresenterOhos() = default;

NotificationPresenterOhos::~NotificationPresenterOhos() = default;

Notification* NotificationPresenterOhos::CreateNotificationObject(
    NotificationDelegate* delegate) {
  return new OhosNotification(delegate, this);
}

}  // namespace electron
